<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>gowhere</title>
    <script>
    	(function(doc, win) {
		    var docEl = win.document.documentElement;
		    var resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
		    /**
		      * ================================================
		      *   设置根元素font-size
		      * 当设备宽度为375(iPhone6)时，根元素font-size=50px; 
		      × ================================================
		      */
		    var refreshRem = function() {
		        var clientWidth = win.innerWidth ||
		            doc.documentElement.clientWidth ||
		            doc.body.clientWidth;

		        if (!clientWidth) return;
		        var fz;
		        var width = clientWidth;
		        fz = 50 * width / 375;
		        docEl.style.fontSize = fz + 'px';
		    };

		    if (!doc.addEventListener) return;
		    win.addEventListener(resizeEvt, refreshRem, false);
		    doc.addEventListener('DOMContentLoaded', refreshRem, false);
		    refreshRem();

		})(document, window);
    </script>
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>
